//订单退货原因管理
import {get, post, put, del} from "../utils/request";

//分页获取退货原因
export function fetchList(params) {
    return get('/order/return/reason/listpage', params)
}

//删除退货原因
export function deleteReason(ids) {
    return del('/order/return/reason/del', ids)
}

//修改退货原因状态
export function updateStatus(params) {
    return post('/order/return/reason/update/status', params)
}

//新增退货原因
export function addReason(data) {
    return post('/order/return/reason/insert', data)
}

//获取退货原因
export function getReasonDetail(id) {
    return get('/order/return/reason/getitem/' + id)
}

//修改退货原因
export function updateReason(id, data) {
    return post('/order/return/reason/update/' + id, data)
}